import request from '@/utils/request'

// 查询慢病中心-在线咨询列表
export function listConsult(query) {
  return request({
    url: '/chronicDisease/consult/list',
    method: 'get',
    params: query
  })
}

// 查询慢病中心-在线咨询详细
export function getConsult(id) {
  return request({
    url: '/chronicDisease/consult/' + id,
    method: 'get'
  })
}

// 新增慢病中心-在线咨询
export function addConsult(data) {
  return request({
    url: '/chronicDisease/consult',
    method: 'post',
    data: data
  })
}

// 修改慢病中心-在线咨询
export function updateConsult(data) {
  return request({
    url: '/chronicDisease/consult',
    method: 'put',
    data: data
  })
}

// 删除慢病中心-在线咨询
export function delConsult(id) {
  return request({
    url: '/chronicDisease/consult/' + id,
    method: 'delete'
  })
}
